Companion

Functions

Link copied to clipboard
fun rectangle(minX: Double, minY: Double, maxX: Double, maxY: Double, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Polygon2

Creates a rectangle polygon.

Link copied to clipboard
fun regular(sides: Int, radius: Double, center: Vec2 = Vec2.ZERO, startAngle: Double = 0.0, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Polygon2

Creates a regular polygon with the specified number of sides, centered at a given point.